package com.ruoyi.web.mapper;

import java.util.List;
import com.ruoyi.web.domain.KubernetesUserRoleBinding;

/**
 * K8s用户权限Mapper接口
 *
 * @author xuchengchao
 * @date 2022-04-17
 */
public interface KubernetesUserRoleBindingMapper
{
    /**
     * 查询K8s用户权限
     *
     * @param id K8s用户权限主键
     * @return K8s用户权限
     */
    public KubernetesUserRoleBinding selectKubernetesUserRoleBindingById(Long id);

    /**
     * 查询K8s用户权限列表
     *
     * @param kubernetesUserRoleBinding K8s用户权限
     * @return K8s用户权限集合
     */
    public List<KubernetesUserRoleBinding> selectKubernetesUserRoleBindingList(KubernetesUserRoleBinding kubernetesUserRoleBinding);

    /**
     * 新增K8s用户权限
     *
     * @param kubernetesUserRoleBinding K8s用户权限
     * @return 结果
     */
    public int insertKubernetesUserRoleBinding(KubernetesUserRoleBinding kubernetesUserRoleBinding);

    /**
     * 修改K8s用户权限
     *
     * @param kubernetesUserRoleBinding K8s用户权限
     * @return 结果
     */
    public int updateKubernetesUserRoleBinding(KubernetesUserRoleBinding kubernetesUserRoleBinding);

    /**
     * 删除K8s用户权限
     *
     * @param id K8s用户权限主键
     * @return 结果
     */
    public int deleteKubernetesUserRoleBindingById(Long id);

    /**
     * 批量删除K8s用户权限
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteKubernetesUserRoleBindingByIds(Long[] ids);

    public List<KubernetesUserRoleBinding> selectKubernetesUserRoleBindingListByUserId(Long id);
}
